﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace SimpleBomberman
{
    public class Bonus : GameObject
    {
        #region Constructors

        public Bonus() : base() { }
        public Bonus(int x, int y, int length) : base(x, y, length) { }

        #endregion Constructors

        #region Public Methods

        public override void Draw(Graphics g)
        {
            Pen GoldPen = new Pen(Color.Chocolate);
            Rectangle rectangle = new Rectangle(this.X, this.Y, this.Length - 1, this.Length - 1);

            //--- Body ---
            g.DrawRectangle(GoldPen, rectangle);
            g.FillRectangle(Brushes.Gold, rectangle);

            //--- Text ---
            Font drawFont = new Font("Arial", 16);
            SolidBrush drawBrush = new SolidBrush(Color.Black);
            PointF drawPoint = new PointF(this.X + 3, this.Y + 3);
            g.DrawString("B", drawFont, drawBrush, drawPoint);
        }

        #endregion Public Methods
    }
}
